home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96b.txt / 000062_icon-group-sender _Fri Dec 6 20:30:10 1996.msg < prev    next >
Internet Message Format  |  1997-01-02  |  990b

  1. Received: by cheltenham.cs.arizona.edu; Mon, 9 Dec 1996 11:16:32 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: Fri, 6 Dec 1996 20:30:10 GMT
  4. From: nr@viper.cs.Virginia.EDU (Norman Ramsey)
  5. Message-Id: <589voi$58c@viper.cs.Virginia.EDU>
  6. Organization: University of Virginia Computer Science Department
  7. Sender: icon-group-request@cs.arizona.edu
  8. Subject: Pipes on Unix
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11.  
  12. I'm using Icon on Unix, and I've got an Icon program in which I want
  13. to write output to a filter and then read the results of the filter.
  14. Ideally I'd like to do something like:
  15.  
  16.   file := open("dot -Tplain", "bp")
  17.   # write a bunch of stuff to file
  18.   # close file for writing!
  19.   # read a bunch of stuff from file
  20.   # close file for reading!
  21.  
  22. The problem is, I can't close the file for writing without also losing
  23. the ability to read from it.  Plus I don't even know if mode even "bp"
  24. works. 
  25.  
  26. Suggestions?
  27.  
  28. -- 
  29. Norman Ramsey
  30. http://www.cs.virginia.edu/~nr
  31.